// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-9-21

#ifndef __GAMEID_H_COMMON_NETMSG__
#define __GAMEID_H_COMMON_NETMSG__

#pragma once

#include "gameiddef.h"

//##ModelId=44C4B5FD002E
class CJoyGameIdTool
{
public:
	//##ModelId=44C4B5FD0050
    class CAttribute
    {
    public:
		//##ModelId=44C4B5FD005D
        CString m_levelName;
		//##ModelId=44C4B5FD005E
        CString m_titleName;
		//##ModelId=44C4B5FD006D
        CString m_winName;
		//##ModelId=44C4B5FD006E
        CString m_lossName;
		//##ModelId=44C4B5FD006F
        CString m_battleGroupName;
		//##ModelId=44C4B5FD007D
        CString m_scoreName;
		//##ModelId=44C4B5FD007E
        CString m_prizeName;
		//##ModelId=44C4B5FD007F
        CString m_creditName;
		//##ModelId=44C4B5FD0080
        CString m_ladderName;

		//##ModelId=44C4B5FD008C
        bool    m_hasLevel;
		//##ModelId=44C4B5FD008D
        bool    m_hasTitle;
		//##ModelId=44C4B5FD008E
        bool    m_hasWinLoss;
		//##ModelId=44C4B5FD008F
        bool    m_hasBattleGroup;
		//##ModelId=44C4B5FD009C
        bool    m_hasScore;
		//##ModelId=44C4B5FD009D
        bool    m_hasPrize;
		//##ModelId=44C4B5FD009E
        bool    m_hasCredit;
		//##ModelId=44C4B5FD009F
        bool    m_hasLadder;
		//##ModelId=44C4B5FD00AB
        CAttribute();
    };
protected:
	//##ModelId=44C4B5FD0041
    CMap<UINT, UINT, CAttribute, CAttribute&>  m_attributes;

public:
	//##ModelId=44C4B5FD0045
    CJoyGameIdTool();

	//##ModelId=44C4B5FD004E
    CAttribute& GetAttribue(UINT gameId);
};

extern CJoyGameIdTool g_gameIdTool;


#endif  // __GAMEID_H_COMMON_NETMSG__
